﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cherry.Agile.RpcService.Client
{
    /// <summary>
    /// 服务请求异常，可能的情况包括指数据包不符合协议或请求码不受支持，或未通过服务验证
    /// </summary>
    public class ServiceBadRequestException : Exception
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="rex"></param>
        /// <param name="responseMessage"></param>
        public  ServiceBadRequestException(ResponseCode responseCode)
            //: base(Strings.ServiceBadRequestException + responseCode)
        {
            ResponseCode = responseCode;
        }

        /// <summary>
        /// 响应码
        /// </summary>
        public ResponseCode ResponseCode { get; set; }
    }
}
